package cn.k.mapper;

import cn.k.domain.SystemMenu;
import cn.k.qo.SystemMenuQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemMenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemMenu record);

    SystemMenu selectByPrimaryKey(Long id);

    List<SystemMenu> selectAll();

    int updateByPrimaryKey(SystemMenu record);

    List<SystemMenu> selectForList(SystemMenuQueryObject qo);

    List<SystemMenu> selectForMenu(SystemMenuQueryObject qo);

    List<SystemMenu> selectMenu(Long menuId);

    List<SystemMenu> selectMenuParent(Long id);

    List<SystemMenu> selectChildren(Integer parentId);

    void updateStatus(@Param("id") Long id, @Param("status") int status);
}